Module: Stachio

Defined in:
lib/stachio.rb,
lib/stachio/engine.rb,
lib/stachio/version.rb,
lib/stachio/readonly.rb,
app/models/stachio/template.rb,
app/helpers/stachio/application_helper.rb,
app/controllers/stachio/templates_controller.rb,
app/controllers/stachio/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: ApplicationController, Engine, Template, TemplatesController

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.readonlyObject



2
3
4
5
# File 'lib/stachio/readonly.rb', line 2

def self.readonly
  return Stachio::Engine.config.readonly if defined?(Stachio::Engine.config.readonly)
  (defined?(Rails) && Rails.env.production?) ? true : false
end