Sha256: d84e3270cf891ad7b0edfa931b35d6921520547d597c45b875b6601f80d1ab1b

Contents?: true

Size: 389 Bytes

Versions: 4

Compression:

Stored size: 389 Bytes

Contents

initializer("accessible_attributes.rb") do
<<-"FILE"
class ActiveRecord::Base
  attr_accessible
  attr_accessor :accessible

  private

  def mass_assignment_authorizer
    if accessible == :all
      self.class.protected_attributes
    else
      super + (accessible || [])
    end
  end
end
FILE
end

initializer("haml.rb") do
<<-"FILE"
Haml::Template.options[:format] = :html5
FILE
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bear-0.0.4 templates/initializers.rb
bear-0.0.3 templates/initializers.rb
bear-0.0.2 templates/initializers.rb
bear-0.0.1 templates/initializers.rb