Class: CkeditorRailser
- Inherits:
-
Object
- Object
- CkeditorRailser
- Defined in:
- app/services/ckeditor_railser.rb
Constant Summary collapse
- RAILS_STRUCTURE =
{ rails_assets: { javascripts: /\.js\z/, stylesheets: /\.css\z/, images: /\.(png|jpg|jpeg)\z/, otheres: nil } }
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#base_path ⇒ Object
Returns the value of attribute base_path.
Instance Method Summary collapse
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
11 12 13 |
# File 'app/services/ckeditor_railser.rb', line 11 def actions @actions end |
#base_path ⇒ Object
Returns the value of attribute base_path.
11 12 13 |
# File 'app/services/ckeditor_railser.rb', line 11 def base_path @base_path end |
Instance Method Details
#process(path = nil) ⇒ Object
13 14 15 16 17 18 |
# File 'app/services/ckeditor_railser.rb', line 13 def process path=nil self.base_path = path || '.' raise "base path #{base_path} does not exist" unless Pathname.new(base_path).exist? init_structure railsing! end |