class GalleriableGenerator

Public Instance Methods

add_engine_route_to_app() click to toggle source
# File lib/generators/galleriable/galleriable_generator.rb, line 6
def add_engine_route_to_app
  route "mount Galleriable::Engine => \"\/galleriable\""
end
add_galleriable_to_models() click to toggle source
# File lib/generators/galleriable/galleriable_generator.rb, line 10
def add_galleriable_to_models
  insert_into_file "app/models/#{file_name}.rb", "  include Gallerify\n", :after => "ApplicationRecord\n"
end