gem 'rails-timeago'
gem 'kaminari'
gem 'sanitize'
-#gem 'aws-s3'
-#gem 'aws-s3', :git => 'https://github.com/bartoszkopinski/aws-s3'
gem 'aws-sdk', '~> 2.0'
gem 'awesome_nested_set', '~> 3.0'
gem 'validates_existence'
group :production do
#gem 'pg'
#gem 'therubyracer-heroku'
+ #gem 'rails_12factor'
end
group :mgk do
delete attrs['id']\r
_.extend(attrs, @elements_save_data())\r
# save json data by panel form\r
- new_panel = new Pettanr.Panel.WithElements()\r
+ new_panel = new Pettanr.Panel.Edit()\r
new_form = Locmare.Form.factory({\r
form_name: new_panel.item_name(), \r
use_name: 'default' \r
success: (@speech_balloon) =>\r
@speech_balloon.get_parent('panel', this, {\r
success: (item) =>\r
- @panel = item.with_elements()\r
+ @panel = item.play()\r
@panel.fetch().done =>\r
- @panel.attributes = @panel.replaced_attributes()\r
+ @panel.attributes = @panel.decoded_attributes()\r
@authored_by = @panel.authored_by()\r
@body = new Pettanr.Views.Panel.Body({\r
panel: @panel,\r
this.$el.html('')\r
@item.get_parent('panel', this, {\r
success: (item) =>\r
- @panel = item.with_elements()\r
+ @panel = item.play()\r
@panel.fetch().done =>\r
- @panel.attributes = @panel.replaced_attributes()\r
+ @panel.attributes = @panel.decoded_attributes()\r
@authored_by = @panel.authored_by()\r
@body = new Pettanr.Views.Panel.Body({\r
panel: @panel,\r
this.$el.html('')\r
@item.get_parent('panel', this, {\r
success: (item) =>\r
- @panel = item.with_elements()\r
+ @panel = item.play()\r
@panel.fetch().done =>\r
- @panel.attributes = @panel.replaced_attributes()\r
+ @panel.attributes = @panel.decoded_attributes()\r
@authored_by = @panel.authored_by()\r
@body = new Pettanr.Views.Panel.Body({\r
panel: @panel,\r
this.$el.html('')\r
@item.get_parent('panel', this, {\r
success: (item) =>\r
- @panel = item.with_elements()\r
+ @panel = item.play()\r
@panel.fetch().done =>\r
@panel.attributes = @panel.decoded_attributes()\r
@authored_by = @panel.authored_by()\r
this.$el.html('')\r
@panel = @panel.play() # retake panel for 'with_elements' mode\r
@panel.fetch({cache: true}).done =>\r
- @panel.attributes = @panel.replaced_attributes()\r
+ @panel.attributes = @panel.decoded_attributes()\r
body = new Pettanr.Views.Scroll.PlayModule.PanelBody({\r
panel: @panel\r
})\r
this.$el.html('')\r
@item.get_parent('panel', this, {\r
success: (item) =>\r
- @panel = item.with_elements()\r
+ @panel = item.play()\r
@panel.fetch().done =>\r
- @panel.attributes = @panel.replaced_attributes()\r
+ @panel.attributes = @panel.decoded_attributes()\r
@authored_by = @panel.authored_by()\r
@body = new Pettanr.Views.Panel.Body({\r
panel: @panel,\r
success: (@speech_balloon) =>\r
@speech_balloon.get_parent('panel', this, {\r
success: (item) =>\r
- @panel = item.with_elements()\r
+ @panel = item.play()\r
@panel.fetch().done =>\r
- @panel.attributes = @panel.replaced_attributes()\r
+ @panel.attributes = @panel.decoded_attributes()\r
@authored_by = @panel.authored_by()\r
@body = new Pettanr.Views.Panel.Body({\r
panel: @panel,\r
else
subdir.to_s + '/'
end
- sd
+ @base_dir + '/' + sd
end
def exist?(filename, subdir = nil)